<?php
/**
 * Created by dutuwang.net
 * User: adophper <hello@adophper.com>
 * Date: 2018/4/8
 * Time: 18:32
 */

use yii\helpers\Html;
use yii\bootstrap\ActiveForm;
$this->title = '修改密码';
?>
<?=Html::cssFile('/static/frontend/css/center.css')?>
<div class="contBox">
    <div class="center_box row">
        <?=$this->render('left')?>
        <div class="col-md-10 right_min">
            <div class="right_box">
                <div class="right_title flex f_between">
                    <span class="right_t_label t_red">修改密码</span>
                </div>
                <div class="modify_are">
                    <?php
                    $form = ActiveForm::begin(['id' => 'reset-password-form']);
                    ?>
                    <div class="modify_box">
                        <?php
                        if (!empty($model->error_message)) {
                        ?>
                        <p class="flex">
                            <label></label>
                            <span class="<?=$is_ok?'text-success':'t_red'?>"><?=$model->error_message?></span>
                        </p>
                        <?php
                        }
                        ?>
                        <div class="form-inline">
                            <?= $form->field($model, 'password_origin')->passwordInput([ "placeholder" => Yii::t('frontend','password_origin'),'class'=>'form-control']) ?>
                        </div>
                        <div class="form-inline">
                            <?= $form->field($model, 'password_new')->passwordInput([ "placeholder" => Yii::t('frontend','password_new'),'class'=>'form-control']) ?>
                        </div>
                        <div class="form-inline">
                            <?= $form->field($model, 'password_repeat')->passwordInput(["placeholder" => Yii::t('frontend','password_repeat'),'class'=>'form-control']) ?>
                        </div>
                        <p class="flex">
                            <label></label>
                            <?= Html::submitButton(Yii::t('frontend', 'submit'), ['id'=>'updateBtn','class'=>'btn_red'])?>
                        </p>
                    </div>
                    <?php ActiveForm::end(); ?>
                </div>
            </div>
        </div>
    </div>
</div>